import 'package:flutter/material.dart';

class Widget_ClipRect_Page extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
          appBar: AppBar(
            title: Text("ClipRect"),
          ),
          body: Center(
            child: ClipRect(
              child: Image.asset(
                "images/app.png",
                width: 100.0,
                height: 100.0,
                fit: BoxFit.cover,
              ),
            ),
          )
      ),
    );
  }
}

/**
 * 矩形裁剪
 *  ClipRect({
 *  Key key,
 *  this.clipper,
 *  this.clipBehavior = Clip.hardEdge,
 *  Widget child })
 */
